package com.liang.book.mapper;

import com.liang.book.model.AddBuyBook;
import com.liang.book.model.BookInfo;
import com.liang.book.model.Purchase;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BuyMapper {
    Integer insertPurchaseDetail(Purchase purchase);
    Purchase selectPurchaseDetail(Integer id);
    Integer addBuyBook(AddBuyBook addBuyBook);
    List<AddBuyBook> selectAddBook(String buyerName);

    List<Purchase> selectPurchaseList(String buyerName);

    Integer insertPurchase(Purchase purchase);
}
